using System;
using System.Collections.Generic;
using Me.Prettyprint.Hector.Api;

namespace Me.Prettyprint.Hector.Api.Beans
{
    /// <summary>
    /// Models a SuperColumn in a protocol independant manner
    /// </summary>
    /// <typeparam name="SN"></typeparam>
    /// <typeparam name="N"></typeparam>
    /// <typeparam name="V"></typeparam>
	public interface HSuperColumn<SN,N,V>
	{
        SN Name
        {
            get;
            set;
        }
        HSuperColumn<SN, N, V> SetName(SN name);
        byte[] NameBytes
        {
            get;
        }
        HSuperColumn<SN, N, V> SetSubcolumns(List<HColumn<N, V>> subcolumns);
        long Clock
        {
            get;
            set;
        }
        HSuperColumn<SN, N, V> SetClock(long clock);
        List<HColumn<N, V>> Columns
        {
            get;
        }
        HColumn<N, V> Get(int i);
        HColumn<N, V> GetSubColumnByName(N subColumnName);
        Serializer<SN> GetNameSerializer();
        Serializer<SN> SuperNameSerializer
        {
            get;
        }
        Serializer<V> ValueSerializer
        {
            get;
            set;
        }
	}
}